package com.atguigu.boot.bean;

/**
 * @author 黄石杨  on 2022/3/8
 * @version 1.0
 */

/**
 * 宠物
 */
public class Pet {
    private String name;

    public Pet(String name) {
        this.name = name;
    }
    public Pet() {
    }

    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name=name;
    }

    @Override
    public String toString() {
        return "Pet{" +
                "name='" + name + '\'' +
                '}';
    }
}



















